<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>后台管理</title>
    <link href="/Public/Admin/css/bootstrap.min.css" rel="stylesheet">
    <link href="/Public/Common/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
    <link href="/Public/Admin/css/base.css" rel="stylesheet">
    <script src="/Public/Common/js/jquery-1.9.1.min.js"></script>

</head>
<body>
<!--主页面-->
<div id="main-content" class="content">
    <ul class="breadcrumb">
        <li><a href="/">首页</a></li>
        <li class="active"><a href="">管理员</a></li>
        <li class="active">编辑管理员</li>
    </ul>

    <div class="page-header clearfix">
        <h3>管理员</h3>
        <ul class="nav nav-tabs">    
            <li>
                <a href="<?php echo U('Admin/adminList');?>">管理员列表</a>
            </li>
            <li class="active">
                <a href="<?php echo U('Admin/addAdmin');?>">编辑管理员</a>
            </li>
        </ul>
    </div>

    <div class="content-box-content">
        <form action="<?php echo U('Admin/editAdmin');?>" method="post" class="form-horizontal" role="form">
            <input type="hidden" name="a_id" value="<?php echo ($admin['a_id']); ?>">
            <div class="form-group">
                <label  class="col-sm-3 control-label">管理员账号：</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="account" value=<?php echo ($admin['account']); ?> name="account">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-3 control-label">密码：</label>
                <div class="col-sm-9">
                  <input type="password" class="form-control" id="password" value=<?php echo ($admin['password']); ?> name="password">
                </div>
            </div> 
            <div class="form-group">
                <label  class="col-sm-3 control-label">确认密码：</label>
                <div class="col-sm-9">
                  <input type="password" class="form-control" id="re_password" value=<?php echo ($admin['password']); ?> name="re_password">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-3 col-sm-9">
                  <button type="submit" class="btn btn-default btn-primary">确认添加</button>
                </div>
            </div>
        </form>
    </div>
</div>
<!--主页面 end-->
<script type="text/javascript" src="/Public/Admin/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/Public/Admin/js/common.js"></script>
</body>
</html>